home *** CD-ROM | disk | FTP | other *** search
/ GFX Sensations 1 / Graphic Sensations - Volume 1.iso / com_net / tcp / amitcp / netinclude / sys / a_ioctl.h next >
C/C++ Source or Header  |  2000-01-01  |  2KB  |  47 lines

  1. #ifndef    SYS_A_IOCTL_H
  2. #define    SYS_A_IOCTL_H
  3. /*
  4. **      $Filename: sys/a_ioctl.h $
  5. **    $Release$
  6. **      $Revision: 3.1 $
  7. **      $Date: 1994/02/03 11:46:16 $
  8. **
  9. **    AmiTCP/IP 2 compatible ioctl codes to network interfaces
  10. **
  11. **    Copyright © 1993,1994 AmiTCP/IP Group, <AmiTCP-Group@hut.fi>
  12. **                  Helsinki University of Technology, Finland.
  13. **                  All rights reserved.
  14. */
  15.  
  16. #ifndef SYS_IOCTL_H
  17. #include <sys/ioctl.h>
  18. #endif
  19.  
  20. #define COMPAT_AMITCP2  1
  21.  
  22. /*
  23.  * Compatiblity ioctl's
  24.  */
  25. #define    ASIOCSIFADDR    _IOW ('I',12,struct aifreq)     /* set ifnet address */
  26. #define    ASIOCGIFADDR    _IOWR('I',33,struct aifreq)     /* get ifnet address */
  27. #define    ASIOCSIFDSTADDR    _IOW ('I',14,struct aifreq)     /* set p-p address */
  28. #define    ASIOCGIFDSTADDR    _IOWR('I',34,struct aifreq)     /* get p-p address */
  29. #define    ASIOCSIFFLAGS    _IOW ('I',16,struct aifreq)     /* set ifnet flags */
  30. #define    ASIOCGIFFLAGS    _IOWR('I',17,struct aifreq)     /* get ifnet flags */
  31. #define    ASIOCGIFBRDADDR    _IOWR('I',35,struct aifreq)     /* get bdcast addr */
  32. #define    ASIOCSIFBRDADDR    _IOW ('I',19,struct aifreq)     /* set bcast addr */
  33. #define    ASIOCGIFNETMASK    _IOWR('I',37,struct aifreq)     /* get net addr mask */
  34. #define    ASIOCSIFNETMASK    _IOW ('I',22,struct aifreq)     /* set net addr mask */
  35. #define    ASIOCGIFMETRIC    _IOWR('I',23,struct aifreq)     /* get IF metric */
  36. #define    ASIOCSIFMETRIC    _IOW ('I',24,struct aifreq)     /* set IF metric */
  37. #define    ASIOCDIFADDR    _IOW ('I',25,struct aifreq)     /* delete IF addr */
  38.  
  39. #define    ASIOCGIFCONF    _IOWR('I',36,struct ifconf)     /* get ifnet list */
  40. #define    ASIOCAIFADDR    _IOW ('I',26,struct aifaliasreq) /* add/chg IF alias */
  41.  
  42. #define    ASIOCSARP    _IOW('I', 30, struct aarpreq)    /* set arp entry */
  43. #define    ASIOCGARP    _IOWR('I',38, struct aarpreq)    /* get arp entry */
  44. #define    ASIOCDARP    _IOW('I', 32, struct aarpreq)    /* delete arp entry */
  45.  
  46. #endif /* !SYS_A_IOCTL_H */
  47.